<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>E[attribute$=value]选择器</title>
    <style type="text/css">
        p[id$=main]{
            color:#0cf;
            font-family: "宋体";
            font-size: 32px;
        }
    </style>
</head>
<body>
    <p id="old1">水陆草木之花</p>
    <p id="old2">晋陶渊明独爱菊</p>
    <P id="oldmain">予独爱莲之出淤泥而不染</P>
    <p id="newmain">可远观而不可亵玩焉</p>
</body>
</html>